﻿namespace StationDataHub.Models;

public class AppSettings
{
    public static Db Db { get; set; }
    public static TimeJob TimeJob { get; set; }
    public static Chargeplatform ChargePlatform { get; set; }
}

public class Db
{
    public string ConnectionString { get; set; }
}

public class TimeJob
{
    public int GetTokenJob { get; set; }
    public int QueryStationInfoJob { get; set; }
    public int QueryConnectorStatusJob { get; set; }
}

public class Chargeplatform
{
    public API API { get; set; }
    public Securityconfig SecurityConfig { get; set; }
}

public class API
{
    public string Host { get; set; }
    public Interfaces Interfaces { get; set; }
}

public class Interfaces
{
    /// <summary>
    /// 6.1 获取认证token（必选）
    /// </summary>
    public string GetAuthToken { get; set; }

    /// <summary>
    /// 6.2 查询充电站信息（必选）
    /// </summary>
    public string QueryStationInfo { get; set; }

    /// <summary>
    /// 6.4 设备接口状态查询（必选）
    /// </summary>
    public string QueryConnectorStatus { get; set; }

}

/// <summary>
/// 安全认证配置
/// </summary>
public class Securityconfig
{
    /// <summary>
    /// 运营商ID
    /// </summary>
    public string OperatorID { get; set; }

    /// <summary>
    /// 运营商密钥
    /// </summary>
    public string OperatorSecret { get; set; }

    /// <summary>
    /// 签名Key
    /// </summary>
    public string DataSecret { get; set; }

    /// <summary>
    /// AES加密密钥
    /// </summary>
    public string AesEncryptionKey { get; set; }

    /// <summary>
    /// AES初始向量
    /// </summary>
    public string AesInitialVector { get; set; }
}